Reverse(TSource) Method

Task Parallel System.Threading

Inverts the order of the elements in a parallel sequence.

Namespace:  System.Linq
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Reverse(Of TSource) ( _
	source As ParallelQuery(Of TSource) _
) As ParallelQuery(Of TSource)
C#
public static ParallelQuery<TSource> Reverse<TSource>(
	ParallelQuery<TSource> source
)

Parameters

source
Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
A sequence of values to reverse.

Type Parameters

TSource
The type of the elements of source.

Return Value

A sequence whose elements correspond to those of the input sequence in reverse order.

Exceptions

ExceptionCondition
System..::.ArgumentNullException source is a null reference (Nothing in Visual Basic).

See Also